list_manager = ['曹操', '刘备', '孙权']
list_tech = ['曹操', '刘备', '张飞', '关羽']
# 列表转集合
set_manager = frozenset(list_manager)
set_tech = frozenset(list_tech)

# 1 即是经理也是技术员（交集）
intersection_set = set_manager & set_tech
print(intersection_set)

# 2 是经理，但不是技术员的(补集)
left_supplementary_set = set_manager - set_tech
print(left_supplementary_set)

# 3 不是经理，是技术员的(补集)
right_supplementary_set = set_tech - set_manager
print(right_supplementary_set)

# 4 张飞是经理？
print('张飞' in set_manager)

# 5 身兼一职的都有谁 补集
supplementary_set = set_manager ^ set_tech
print(supplementary_set)

# 6 经理和技术员总共有多少人
union_set = set_manager | set_tech
print(union_set)
